#include <iostream>
#include "fac.h"

int main()
{
    int n;
    std::cout << "input an integer n:";
    std::cin >> n;
    for(int i = 1; i < n + 1; i++)
    {
        std::cout << i << "! = " << fac(i) << std::endl;
    }
    return 0;
}